<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <!--<meta name="referrer" content="no-referrer|no-referrer-when-downgrade|origin|origin-when-crossorigin|unsafe-url">-->
    <title></title>
</head>
<body>
<!--<form id="uploadForm" enctype="multipart/form-data">-->
    <!--文件:<input type="file" name="files" multiple="multiple" /><br>-->
    用户名：<input type="text" name="username" value=""/>
    密码：<input type="password" name="password" value=""/>
    <input type="hidden" name="fileId" value="">  <!--项目上传文件的ID--->
<!--</form>-->
<button id="upload" >登陆</button>
</body>
</html>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
    $("#upload").click(function () {
        $.ajax({
            type: 'post',
            url: "http://zhongbao.com/index/login/login",
            data: {
                username : 123456,
                u_password : 1234567
            },
            dataType:'json',
            success:function(data){
                console.log(data);
            },
            error:function(error){
                console.log(error);
            }
        })
    });
</script>